.content-renderer {
  font-family: 'Inter', Arial, sans-serif; /* 使用现代字体 */
  line-height: 1.8;
  color: #333;
  padding: 1rem;
  background-color: #ffffff; /* 纯白背景 */
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-renderer h1,
.content-renderer h2,
.content-renderer h3 {
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 0.2rem;
}

.content-renderer h1 {
  font-size: 2rem;
}

.content-renderer h2 {
  font-size: 1.75rem;
}

.content-renderer h3 {
  font-size: 1.5rem;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.markdown-table th,
.markdown-table td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: left;
}

.markdown-table th {
  background-color: #f5f7fa; /* 浅灰蓝背景 */
  font-weight: 600;
}

.content-renderer pre {
  background-color: #f8f9fa;
  padding: 1.2rem;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: #333;
}

.custom-code-block {
  background-color: #f6f8fa; /* 浅灰背景 */
  border: 1px solid #ddd; /* 边框 */
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto; /* 自动处理溢出 */
  font-family: "Fira Code", monospace; /* 现代代码字体 */
  font-size: 0.95rem;
  color: #2c3e50;
}

.inline-code {
  background-color: #f6f8fa;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  color: #e74c3c; /* 红色强调 */
}

pre.custom-code-block {
  white-space: pre-wrap; /* 自动换行 */
  word-wrap: break-word;
}

.content-renderer blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background-color: #f9f9f9;
  border-left: 4px solid #3498db;
  font-style: italic;
  color: #555;
  border-radius: 6px;
}

.content-renderer ul,
.content-renderer ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content-renderer li {
  margin-bottom: 0.8rem;
}

.content-renderer a {
  color: #3498db;
  text-decoration: underline;
  transition: color 0.3s;
}

.content-renderer a:hover {
  color: #1d78c1;
}

.content-renderer img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}
